/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/minimal");

// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.AftApplyOrderLine = (function () {

    /**
     * Properties of an AftApplyOrderLine.
     * @exports IAftApplyOrderLine
     * @interface IAftApplyOrderLine
     * @property {string|null} [uuid] AftApplyOrderLine uuid
     * @property {string|null} [upper] AftApplyOrderLine upper
     * @property {string|null} [validFlag] AftApplyOrderLine validFlag
     * @property {string|null} [creator] AftApplyOrderLine creator
     * @property {string|null} [createTime] AftApplyOrderLine createTime
     * @property {string|null} [creatorIp] AftApplyOrderLine creatorIp
     * @property {string|null} [lastModifier] AftApplyOrderLine lastModifier
     * @property {string|null} [lastModifyTime] AftApplyOrderLine lastModifyTime
     * @property {string|null} [lastModifierIp] AftApplyOrderLine lastModifierIp
     * @property {string|null} [ownerOrganize] AftApplyOrderLine ownerOrganize
     * @property {string|null} [ownerRole] AftApplyOrderLine ownerRole
     * @property {string|null} [serNum] AftApplyOrderLine serNum
     * @property {string|null} [serMemo] AftApplyOrderLine serMemo
     * @property {string|null} [serAudit] AftApplyOrderLine serAudit
     * @property {string|null} [serUsing] AftApplyOrderLine serUsing
     * @property {string|null} [serLabels] AftApplyOrderLine serLabels
     * @property {string|null} [serFileUrl] AftApplyOrderLine serFileUrl
     * @property {string|null} [serEditorContent] AftApplyOrderLine serEditorContent
     * @property {string|null} [serInputGroupData] AftApplyOrderLine serInputGroupData
     * @property {string|null} [serAfterSaleType] AftApplyOrderLine serAfterSaleType
     * @property {string|null} [serAuditState] AftApplyOrderLine serAuditState
     * @property {string|null} [serUserReason] AftApplyOrderLine serUserReason
     * @property {string|null} [serReviewReason] AftApplyOrderLine serReviewReason
     * @property {string|null} [serCoding] AftApplyOrderLine serCoding
     * @property {string|null} [serCount] AftApplyOrderLine serCount
     * @property {string|null} [serPayDate] AftApplyOrderLine serPayDate
     * @property {string|null} [serLogisticsNum] AftApplyOrderLine serLogisticsNum
     * @property {string|null} [serLogisticsCompany] AftApplyOrderLine serLogisticsCompany
     * @property {string|null} [serMoney] AftApplyOrderLine serMoney
     * @property {string|null} [serAfterSaleId] AftApplyOrderLine serAfterSaleId
     * @property {string|null} [afterSaleNo] AftApplyOrderLine afterSaleNo
     * @property {string|null} [serItemId] AftApplyOrderLine serItemId
     * @property {string|null} [serItemName] AftApplyOrderLine serItemName
     * @property {string|null} [serItemImg] AftApplyOrderLine serItemImg
     * @property {string|null} [serItemPrice] AftApplyOrderLine serItemPrice
     * @property {string|null} [serGoodsBrandName] AftApplyOrderLine serGoodsBrandName
     * @property {string|null} [fkBrandUuid] AftApplyOrderLine fkBrandUuid
     * @property {string|null} [serOrderDetailUuid] AftApplyOrderLine serOrderDetailUuid
     */

    /**
     * Constructs a new AftApplyOrderLine.
     * @exports AftApplyOrderLine
     * @classdesc Represents an AftApplyOrderLine.
     * @implements IAftApplyOrderLine
     * @constructor
     * @param {IAftApplyOrderLine=} [properties] Properties to set
     */
    function AftApplyOrderLine(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * AftApplyOrderLine uuid.
     * @member {string} uuid
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.uuid = "";

    /**
     * AftApplyOrderLine upper.
     * @member {string} upper
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.upper = "";

    /**
     * AftApplyOrderLine validFlag.
     * @member {string} validFlag
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.validFlag = "";

    /**
     * AftApplyOrderLine creator.
     * @member {string} creator
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.creator = "";

    /**
     * AftApplyOrderLine createTime.
     * @member {string} createTime
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.createTime = "";

    /**
     * AftApplyOrderLine creatorIp.
     * @member {string} creatorIp
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.creatorIp = "";

    /**
     * AftApplyOrderLine lastModifier.
     * @member {string} lastModifier
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.lastModifier = "";

    /**
     * AftApplyOrderLine lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.lastModifyTime = "";

    /**
     * AftApplyOrderLine lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.lastModifierIp = "";

    /**
     * AftApplyOrderLine ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.ownerOrganize = "";

    /**
     * AftApplyOrderLine ownerRole.
     * @member {string} ownerRole
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.ownerRole = "";

    /**
     * AftApplyOrderLine serNum.
     * @member {string} serNum
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serNum = "";

    /**
     * AftApplyOrderLine serMemo.
     * @member {string} serMemo
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serMemo = "";

    /**
     * AftApplyOrderLine serAudit.
     * @member {string} serAudit
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serAudit = "";

    /**
     * AftApplyOrderLine serUsing.
     * @member {string} serUsing
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serUsing = "";

    /**
     * AftApplyOrderLine serLabels.
     * @member {string} serLabels
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serLabels = "";

    /**
     * AftApplyOrderLine serFileUrl.
     * @member {string} serFileUrl
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serFileUrl = "";

    /**
     * AftApplyOrderLine serEditorContent.
     * @member {string} serEditorContent
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serEditorContent = "";

    /**
     * AftApplyOrderLine serInputGroupData.
     * @member {string} serInputGroupData
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serInputGroupData = "";

    /**
     * AftApplyOrderLine serAfterSaleType.
     * @member {string} serAfterSaleType
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serAfterSaleType = "";

    /**
     * AftApplyOrderLine serAuditState.
     * @member {string} serAuditState
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serAuditState = "";

    /**
     * AftApplyOrderLine serUserReason.
     * @member {string} serUserReason
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serUserReason = "";

    /**
     * AftApplyOrderLine serReviewReason.
     * @member {string} serReviewReason
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serReviewReason = "";

    /**
     * AftApplyOrderLine serCoding.
     * @member {string} serCoding
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serCoding = "";

    /**
     * AftApplyOrderLine serCount.
     * @member {string} serCount
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serCount = "";

    /**
     * AftApplyOrderLine serPayDate.
     * @member {string} serPayDate
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serPayDate = "";

    /**
     * AftApplyOrderLine serLogisticsNum.
     * @member {string} serLogisticsNum
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serLogisticsNum = "";

    /**
     * AftApplyOrderLine serLogisticsCompany.
     * @member {string} serLogisticsCompany
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serLogisticsCompany = "";

    /**
     * AftApplyOrderLine serMoney.
     * @member {string} serMoney
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serMoney = "";

    /**
     * AftApplyOrderLine serAfterSaleId.
     * @member {string} serAfterSaleId
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serAfterSaleId = "";

    /**
     * AftApplyOrderLine afterSaleNo.
     * @member {string} afterSaleNo
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.afterSaleNo = "";

    /**
     * AftApplyOrderLine serItemId.
     * @member {string} serItemId
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serItemId = "";

    /**
     * AftApplyOrderLine serItemName.
     * @member {string} serItemName
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serItemName = "";

    /**
     * AftApplyOrderLine serItemImg.
     * @member {string} serItemImg
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serItemImg = "";

    /**
     * AftApplyOrderLine serItemPrice.
     * @member {string} serItemPrice
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serItemPrice = "";

    /**
     * AftApplyOrderLine serGoodsBrandName.
     * @member {string} serGoodsBrandName
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serGoodsBrandName = "";

    /**
     * AftApplyOrderLine fkBrandUuid.
     * @member {string} fkBrandUuid
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.fkBrandUuid = "";

    /**
     * AftApplyOrderLine serOrderDetailUuid.
     * @member {string} serOrderDetailUuid
     * @memberof AftApplyOrderLine
     * @instance
     */
    AftApplyOrderLine.prototype.serOrderDetailUuid = "";

    /**
     * Creates a new AftApplyOrderLine instance using the specified properties.
     * @function create
     * @memberof AftApplyOrderLine
     * @static
     * @param {IAftApplyOrderLine=} [properties] Properties to set
     * @returns {AftApplyOrderLine} AftApplyOrderLine instance
     */
    AftApplyOrderLine.create = function create(properties) {
        return new AftApplyOrderLine(properties);
    };

    /**
     * Encodes the specified AftApplyOrderLine message. Does not implicitly {@link AftApplyOrderLine.verify|verify} messages.
     * @function encode
     * @memberof AftApplyOrderLine
     * @static
     * @param {IAftApplyOrderLine} message AftApplyOrderLine message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    AftApplyOrderLine.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl"))
            writer.uint32(/* id 17, wireType 2 =*/138).string(message.serFileUrl);
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.serEditorContent);
        if (message.serInputGroupData != null && message.hasOwnProperty("serInputGroupData"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.serInputGroupData);
        if (message.serAfterSaleType != null && message.hasOwnProperty("serAfterSaleType"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.serAfterSaleType);
        if (message.serAuditState != null && message.hasOwnProperty("serAuditState"))
            writer.uint32(/* id 22, wireType 2 =*/178).string(message.serAuditState);
        if (message.serUserReason != null && message.hasOwnProperty("serUserReason"))
            writer.uint32(/* id 23, wireType 2 =*/186).string(message.serUserReason);
        if (message.serReviewReason != null && message.hasOwnProperty("serReviewReason"))
            writer.uint32(/* id 24, wireType 2 =*/194).string(message.serReviewReason);
        if (message.serCoding != null && message.hasOwnProperty("serCoding"))
            writer.uint32(/* id 25, wireType 2 =*/202).string(message.serCoding);
        if (message.serCount != null && message.hasOwnProperty("serCount"))
            writer.uint32(/* id 26, wireType 2 =*/210).string(message.serCount);
        if (message.serPayDate != null && message.hasOwnProperty("serPayDate"))
            writer.uint32(/* id 27, wireType 2 =*/218).string(message.serPayDate);
        if (message.serLogisticsNum != null && message.hasOwnProperty("serLogisticsNum"))
            writer.uint32(/* id 28, wireType 2 =*/226).string(message.serLogisticsNum);
        if (message.serLogisticsCompany != null && message.hasOwnProperty("serLogisticsCompany"))
            writer.uint32(/* id 29, wireType 2 =*/234).string(message.serLogisticsCompany);
        if (message.serMoney != null && message.hasOwnProperty("serMoney"))
            writer.uint32(/* id 30, wireType 2 =*/242).string(message.serMoney);
        if (message.serAfterSaleId != null && message.hasOwnProperty("serAfterSaleId"))
            writer.uint32(/* id 31, wireType 2 =*/250).string(message.serAfterSaleId);
        if (message.afterSaleNo != null && message.hasOwnProperty("afterSaleNo"))
            writer.uint32(/* id 32, wireType 2 =*/258).string(message.afterSaleNo);
        if (message.serItemId != null && message.hasOwnProperty("serItemId"))
            writer.uint32(/* id 33, wireType 2 =*/266).string(message.serItemId);
        if (message.serItemName != null && message.hasOwnProperty("serItemName"))
            writer.uint32(/* id 34, wireType 2 =*/274).string(message.serItemName);
        if (message.serItemImg != null && message.hasOwnProperty("serItemImg"))
            writer.uint32(/* id 35, wireType 2 =*/282).string(message.serItemImg);
        if (message.serItemPrice != null && message.hasOwnProperty("serItemPrice"))
            writer.uint32(/* id 36, wireType 2 =*/290).string(message.serItemPrice);
        if (message.serGoodsBrandName != null && message.hasOwnProperty("serGoodsBrandName"))
            writer.uint32(/* id 37, wireType 2 =*/298).string(message.serGoodsBrandName);
        if (message.fkBrandUuid != null && message.hasOwnProperty("fkBrandUuid"))
            writer.uint32(/* id 38, wireType 2 =*/306).string(message.fkBrandUuid);
        if (message.serOrderDetailUuid != null && message.hasOwnProperty("serOrderDetailUuid"))
            writer.uint32(/* id 39, wireType 2 =*/314).string(message.serOrderDetailUuid);
        return writer;
    };

    /**
     * Encodes the specified AftApplyOrderLine message, length delimited. Does not implicitly {@link AftApplyOrderLine.verify|verify} messages.
     * @function encodeDelimited
     * @memberof AftApplyOrderLine
     * @static
     * @param {IAftApplyOrderLine} message AftApplyOrderLine message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    AftApplyOrderLine.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes an AftApplyOrderLine message from the specified reader or buffer.
     * @function decode
     * @memberof AftApplyOrderLine
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {AftApplyOrderLine} AftApplyOrderLine
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    AftApplyOrderLine.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AftApplyOrderLine();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
                case 1:
                    message.uuid = reader.string();
                    break;
                case 2:
                    message.upper = reader.string();
                    break;
                case 3:
                    message.validFlag = reader.string();
                    break;
                case 4:
                    message.creator = reader.string();
                    break;
                case 5:
                    message.createTime = reader.string();
                    break;
                case 6:
                    message.creatorIp = reader.string();
                    break;
                case 7:
                    message.lastModifier = reader.string();
                    break;
                case 8:
                    message.lastModifyTime = reader.string();
                    break;
                case 9:
                    message.lastModifierIp = reader.string();
                    break;
                case 10:
                    message.ownerOrganize = reader.string();
                    break;
                case 11:
                    message.ownerRole = reader.string();
                    break;
                case 12:
                    message.serNum = reader.string();
                    break;
                case 13:
                    message.serMemo = reader.string();
                    break;
                case 14:
                    message.serAudit = reader.string();
                    break;
                case 15:
                    message.serUsing = reader.string();
                    break;
                case 16:
                    message.serLabels = reader.string();
                    break;
                case 17:
                    message.serFileUrl = reader.string();
                    break;
                case 18:
                    message.serEditorContent = reader.string();
                    break;
                case 19:
                    message.serInputGroupData = reader.string();
                    break;
                case 20:
                    message.serAfterSaleType = reader.string();
                    break;
                case 22:
                    message.serAuditState = reader.string();
                    break;
                case 23:
                    message.serUserReason = reader.string();
                    break;
                case 24:
                    message.serReviewReason = reader.string();
                    break;
                case 25:
                    message.serCoding = reader.string();
                    break;
                case 26:
                    message.serCount = reader.string();
                    break;
                case 27:
                    message.serPayDate = reader.string();
                    break;
                case 28:
                    message.serLogisticsNum = reader.string();
                    break;
                case 29:
                    message.serLogisticsCompany = reader.string();
                    break;
                case 30:
                    message.serMoney = reader.string();
                    break;
                case 31:
                    message.serAfterSaleId = reader.string();
                    break;
                case 32:
                    message.afterSaleNo = reader.string();
                    break;
                case 33:
                    message.serItemId = reader.string();
                    break;
                case 34:
                    message.serItemName = reader.string();
                    break;
                case 35:
                    message.serItemImg = reader.string();
                    break;
                case 36:
                    message.serItemPrice = reader.string();
                    break;
                case 37:
                    message.serGoodsBrandName = reader.string();
                    break;
                case 38:
                    message.fkBrandUuid = reader.string();
                    break;
                case 39:
                    message.serOrderDetailUuid = reader.string();
                    break;
                default:
                    reader.skipType(tag & 7);
                    break;
            }
        }
        return message;
    };

    /**
     * Decodes an AftApplyOrderLine message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof AftApplyOrderLine
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {AftApplyOrderLine} AftApplyOrderLine
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    AftApplyOrderLine.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies an AftApplyOrderLine message.
     * @function verify
     * @memberof AftApplyOrderLine
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    AftApplyOrderLine.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl"))
            if (!$util.isString(message.serFileUrl))
                return "serFileUrl: string expected";
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent"))
            if (!$util.isString(message.serEditorContent))
                return "serEditorContent: string expected";
        if (message.serInputGroupData != null && message.hasOwnProperty("serInputGroupData"))
            if (!$util.isString(message.serInputGroupData))
                return "serInputGroupData: string expected";
        if (message.serAfterSaleType != null && message.hasOwnProperty("serAfterSaleType"))
            if (!$util.isString(message.serAfterSaleType))
                return "serAfterSaleType: string expected";
        if (message.serAuditState != null && message.hasOwnProperty("serAuditState"))
            if (!$util.isString(message.serAuditState))
                return "serAuditState: string expected";
        if (message.serUserReason != null && message.hasOwnProperty("serUserReason"))
            if (!$util.isString(message.serUserReason))
                return "serUserReason: string expected";
        if (message.serReviewReason != null && message.hasOwnProperty("serReviewReason"))
            if (!$util.isString(message.serReviewReason))
                return "serReviewReason: string expected";
        if (message.serCoding != null && message.hasOwnProperty("serCoding"))
            if (!$util.isString(message.serCoding))
                return "serCoding: string expected";
        if (message.serCount != null && message.hasOwnProperty("serCount"))
            if (!$util.isString(message.serCount))
                return "serCount: string expected";
        if (message.serPayDate != null && message.hasOwnProperty("serPayDate"))
            if (!$util.isString(message.serPayDate))
                return "serPayDate: string expected";
        if (message.serLogisticsNum != null && message.hasOwnProperty("serLogisticsNum"))
            if (!$util.isString(message.serLogisticsNum))
                return "serLogisticsNum: string expected";
        if (message.serLogisticsCompany != null && message.hasOwnProperty("serLogisticsCompany"))
            if (!$util.isString(message.serLogisticsCompany))
                return "serLogisticsCompany: string expected";
        if (message.serMoney != null && message.hasOwnProperty("serMoney"))
            if (!$util.isString(message.serMoney))
                return "serMoney: string expected";
        if (message.serAfterSaleId != null && message.hasOwnProperty("serAfterSaleId"))
            if (!$util.isString(message.serAfterSaleId))
                return "serAfterSaleId: string expected";
        if (message.afterSaleNo != null && message.hasOwnProperty("afterSaleNo"))
            if (!$util.isString(message.afterSaleNo))
                return "afterSaleNo: string expected";
        if (message.serItemId != null && message.hasOwnProperty("serItemId"))
            if (!$util.isString(message.serItemId))
                return "serItemId: string expected";
        if (message.serItemName != null && message.hasOwnProperty("serItemName"))
            if (!$util.isString(message.serItemName))
                return "serItemName: string expected";
        if (message.serItemImg != null && message.hasOwnProperty("serItemImg"))
            if (!$util.isString(message.serItemImg))
                return "serItemImg: string expected";
        if (message.serItemPrice != null && message.hasOwnProperty("serItemPrice"))
            if (!$util.isString(message.serItemPrice))
                return "serItemPrice: string expected";
        if (message.serGoodsBrandName != null && message.hasOwnProperty("serGoodsBrandName"))
            if (!$util.isString(message.serGoodsBrandName))
                return "serGoodsBrandName: string expected";
        if (message.fkBrandUuid != null && message.hasOwnProperty("fkBrandUuid"))
            if (!$util.isString(message.fkBrandUuid))
                return "fkBrandUuid: string expected";
        if (message.serOrderDetailUuid != null && message.hasOwnProperty("serOrderDetailUuid"))
            if (!$util.isString(message.serOrderDetailUuid))
                return "serOrderDetailUuid: string expected";
        return null;
    };

    /**
     * Creates an AftApplyOrderLine message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof AftApplyOrderLine
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {AftApplyOrderLine} AftApplyOrderLine
     */
    AftApplyOrderLine.fromObject = function fromObject(object) {
        if (object instanceof $root.AftApplyOrderLine)
            return object;
        var message = new $root.AftApplyOrderLine();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.serFileUrl != null)
            message.serFileUrl = String(object.serFileUrl);
        if (object.serEditorContent != null)
            message.serEditorContent = String(object.serEditorContent);
        if (object.serInputGroupData != null)
            message.serInputGroupData = String(object.serInputGroupData);
        if (object.serAfterSaleType != null)
            message.serAfterSaleType = String(object.serAfterSaleType);
        if (object.serAuditState != null)
            message.serAuditState = String(object.serAuditState);
        if (object.serUserReason != null)
            message.serUserReason = String(object.serUserReason);
        if (object.serReviewReason != null)
            message.serReviewReason = String(object.serReviewReason);
        if (object.serCoding != null)
            message.serCoding = String(object.serCoding);
        if (object.serCount != null)
            message.serCount = String(object.serCount);
        if (object.serPayDate != null)
            message.serPayDate = String(object.serPayDate);
        if (object.serLogisticsNum != null)
            message.serLogisticsNum = String(object.serLogisticsNum);
        if (object.serLogisticsCompany != null)
            message.serLogisticsCompany = String(object.serLogisticsCompany);
        if (object.serMoney != null)
            message.serMoney = String(object.serMoney);
        if (object.serAfterSaleId != null)
            message.serAfterSaleId = String(object.serAfterSaleId);
        if (object.afterSaleNo != null)
            message.afterSaleNo = String(object.afterSaleNo);
        if (object.serItemId != null)
            message.serItemId = String(object.serItemId);
        if (object.serItemName != null)
            message.serItemName = String(object.serItemName);
        if (object.serItemImg != null)
            message.serItemImg = String(object.serItemImg);
        if (object.serItemPrice != null)
            message.serItemPrice = String(object.serItemPrice);
        if (object.serGoodsBrandName != null)
            message.serGoodsBrandName = String(object.serGoodsBrandName);
        if (object.fkBrandUuid != null)
            message.fkBrandUuid = String(object.fkBrandUuid);
        if (object.serOrderDetailUuid != null)
            message.serOrderDetailUuid = String(object.serOrderDetailUuid);
        return message;
    };

    /**
     * Creates a plain object from an AftApplyOrderLine message. Also converts values to other types if specified.
     * @function toObject
     * @memberof AftApplyOrderLine
     * @static
     * @param {AftApplyOrderLine} message AftApplyOrderLine
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    AftApplyOrderLine.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.serFileUrl = "";
            object.serEditorContent = "";
            object.serInputGroupData = "";
            object.serAfterSaleType = "";
            object.serAuditState = "";
            object.serUserReason = "";
            object.serReviewReason = "";
            object.serCoding = "";
            object.serCount = "";
            object.serPayDate = "";
            object.serLogisticsNum = "";
            object.serLogisticsCompany = "";
            object.serMoney = "";
            object.serAfterSaleId = "";
            object.afterSaleNo = "";
            object.serItemId = "";
            object.serItemName = "";
            object.serItemImg = "";
            object.serItemPrice = "";
            object.serGoodsBrandName = "";
            object.fkBrandUuid = "";
            object.serOrderDetailUuid = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl"))
            object.serFileUrl = message.serFileUrl;
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent"))
            object.serEditorContent = message.serEditorContent;
        if (message.serInputGroupData != null && message.hasOwnProperty("serInputGroupData"))
            object.serInputGroupData = message.serInputGroupData;
        if (message.serAfterSaleType != null && message.hasOwnProperty("serAfterSaleType"))
            object.serAfterSaleType = message.serAfterSaleType;
        if (message.serAuditState != null && message.hasOwnProperty("serAuditState"))
            object.serAuditState = message.serAuditState;
        if (message.serUserReason != null && message.hasOwnProperty("serUserReason"))
            object.serUserReason = message.serUserReason;
        if (message.serReviewReason != null && message.hasOwnProperty("serReviewReason"))
            object.serReviewReason = message.serReviewReason;
        if (message.serCoding != null && message.hasOwnProperty("serCoding"))
            object.serCoding = message.serCoding;
        if (message.serCount != null && message.hasOwnProperty("serCount"))
            object.serCount = message.serCount;
        if (message.serPayDate != null && message.hasOwnProperty("serPayDate"))
            object.serPayDate = message.serPayDate;
        if (message.serLogisticsNum != null && message.hasOwnProperty("serLogisticsNum"))
            object.serLogisticsNum = message.serLogisticsNum;
        if (message.serLogisticsCompany != null && message.hasOwnProperty("serLogisticsCompany"))
            object.serLogisticsCompany = message.serLogisticsCompany;
        if (message.serMoney != null && message.hasOwnProperty("serMoney"))
            object.serMoney = message.serMoney;
        if (message.serAfterSaleId != null && message.hasOwnProperty("serAfterSaleId"))
            object.serAfterSaleId = message.serAfterSaleId;
        if (message.afterSaleNo != null && message.hasOwnProperty("afterSaleNo"))
            object.afterSaleNo = message.afterSaleNo;
        if (message.serItemId != null && message.hasOwnProperty("serItemId"))
            object.serItemId = message.serItemId;
        if (message.serItemName != null && message.hasOwnProperty("serItemName"))
            object.serItemName = message.serItemName;
        if (message.serItemImg != null && message.hasOwnProperty("serItemImg"))
            object.serItemImg = message.serItemImg;
        if (message.serItemPrice != null && message.hasOwnProperty("serItemPrice"))
            object.serItemPrice = message.serItemPrice;
        if (message.serGoodsBrandName != null && message.hasOwnProperty("serGoodsBrandName"))
            object.serGoodsBrandName = message.serGoodsBrandName;
        if (message.fkBrandUuid != null && message.hasOwnProperty("fkBrandUuid"))
            object.fkBrandUuid = message.fkBrandUuid;
        if (message.serOrderDetailUuid != null && message.hasOwnProperty("serOrderDetailUuid"))
            object.serOrderDetailUuid = message.serOrderDetailUuid;
        return object;
    };

    /**
     * Converts this AftApplyOrderLine to JSON.
     * @function toJSON
     * @memberof AftApplyOrderLine
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    AftApplyOrderLine.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return AftApplyOrderLine;
})();

$root.AftApplyOrderLineCondition = (function () {

    /**
     * Properties of an AftApplyOrderLineCondition.
     * @exports IAftApplyOrderLineCondition
     * @interface IAftApplyOrderLineCondition
     * @property {string|null} [uuid] AftApplyOrderLineCondition uuid
     * @property {string|null} [upper] AftApplyOrderLineCondition upper
     * @property {string|null} [validFlag] AftApplyOrderLineCondition validFlag
     * @property {string|null} [creator] AftApplyOrderLineCondition creator
     * @property {string|null} [createTime] AftApplyOrderLineCondition createTime
     * @property {string|null} [creatorIp] AftApplyOrderLineCondition creatorIp
     * @property {string|null} [lastModifier] AftApplyOrderLineCondition lastModifier
     * @property {string|null} [lastModifyTime] AftApplyOrderLineCondition lastModifyTime
     * @property {string|null} [lastModifierIp] AftApplyOrderLineCondition lastModifierIp
     * @property {string|null} [ownerOrganize] AftApplyOrderLineCondition ownerOrganize
     * @property {string|null} [ownerRole] AftApplyOrderLineCondition ownerRole
     * @property {string|null} [serNum] AftApplyOrderLineCondition serNum
     * @property {string|null} [serMemo] AftApplyOrderLineCondition serMemo
     * @property {string|null} [serAudit] AftApplyOrderLineCondition serAudit
     * @property {string|null} [serUsing] AftApplyOrderLineCondition serUsing
     * @property {string|null} [serLabels] AftApplyOrderLineCondition serLabels
     * @property {Array.<string>|null} [uuidList] AftApplyOrderLineCondition uuidList
     * @property {string|null} [createTimeOUTSET] AftApplyOrderLineCondition createTimeOUTSET
     * @property {string|null} [createTimeFINISH] AftApplyOrderLineCondition createTimeFINISH
     * @property {string|null} [lastModifyTimeOUTSET] AftApplyOrderLineCondition lastModifyTimeOUTSET
     * @property {string|null} [lastModifyTimeFINISH] AftApplyOrderLineCondition lastModifyTimeFINISH
     * @property {Array.<string>|null} [serAuditList] AftApplyOrderLineCondition serAuditList
     * @property {Array.<string>|null} [serFileUrl] AftApplyOrderLineCondition serFileUrl
     * @property {Array.<string>|null} [serEditorContent] AftApplyOrderLineCondition serEditorContent
     */

    /**
     * Constructs a new AftApplyOrderLineCondition.
     * @exports AftApplyOrderLineCondition
     * @classdesc Represents an AftApplyOrderLineCondition.
     * @implements IAftApplyOrderLineCondition
     * @constructor
     * @param {IAftApplyOrderLineCondition=} [properties] Properties to set
     */
    function AftApplyOrderLineCondition(properties) {
        this.uuidList = [];
        this.serAuditList = [];
        this.serFileUrl = [];
        this.serEditorContent = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * AftApplyOrderLineCondition uuid.
     * @member {string} uuid
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.uuid = "";

    /**
     * AftApplyOrderLineCondition upper.
     * @member {string} upper
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.upper = "";

    /**
     * AftApplyOrderLineCondition validFlag.
     * @member {string} validFlag
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.validFlag = "";

    /**
     * AftApplyOrderLineCondition creator.
     * @member {string} creator
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.creator = "";

    /**
     * AftApplyOrderLineCondition createTime.
     * @member {string} createTime
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.createTime = "";

    /**
     * AftApplyOrderLineCondition creatorIp.
     * @member {string} creatorIp
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.creatorIp = "";

    /**
     * AftApplyOrderLineCondition lastModifier.
     * @member {string} lastModifier
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.lastModifier = "";

    /**
     * AftApplyOrderLineCondition lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.lastModifyTime = "";

    /**
     * AftApplyOrderLineCondition lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.lastModifierIp = "";

    /**
     * AftApplyOrderLineCondition ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.ownerOrganize = "";

    /**
     * AftApplyOrderLineCondition ownerRole.
     * @member {string} ownerRole
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.ownerRole = "";

    /**
     * AftApplyOrderLineCondition serNum.
     * @member {string} serNum
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.serNum = "";

    /**
     * AftApplyOrderLineCondition serMemo.
     * @member {string} serMemo
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.serMemo = "";

    /**
     * AftApplyOrderLineCondition serAudit.
     * @member {string} serAudit
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.serAudit = "";

    /**
     * AftApplyOrderLineCondition serUsing.
     * @member {string} serUsing
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.serUsing = "";

    /**
     * AftApplyOrderLineCondition serLabels.
     * @member {string} serLabels
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.serLabels = "";

    /**
     * AftApplyOrderLineCondition uuidList.
     * @member {Array.<string>} uuidList
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.uuidList = $util.emptyArray;

    /**
     * AftApplyOrderLineCondition createTimeOUTSET.
     * @member {string} createTimeOUTSET
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.createTimeOUTSET = "";

    /**
     * AftApplyOrderLineCondition createTimeFINISH.
     * @member {string} createTimeFINISH
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.createTimeFINISH = "";

    /**
     * AftApplyOrderLineCondition lastModifyTimeOUTSET.
     * @member {string} lastModifyTimeOUTSET
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.lastModifyTimeOUTSET = "";

    /**
     * AftApplyOrderLineCondition lastModifyTimeFINISH.
     * @member {string} lastModifyTimeFINISH
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.lastModifyTimeFINISH = "";

    /**
     * AftApplyOrderLineCondition serAuditList.
     * @member {Array.<string>} serAuditList
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.serAuditList = $util.emptyArray;

    /**
     * AftApplyOrderLineCondition serFileUrl.
     * @member {Array.<string>} serFileUrl
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.serFileUrl = $util.emptyArray;

    /**
     * AftApplyOrderLineCondition serEditorContent.
     * @member {Array.<string>} serEditorContent
     * @memberof AftApplyOrderLineCondition
     * @instance
     */
    AftApplyOrderLineCondition.prototype.serEditorContent = $util.emptyArray;

    /**
     * Creates a new AftApplyOrderLineCondition instance using the specified properties.
     * @function create
     * @memberof AftApplyOrderLineCondition
     * @static
     * @param {IAftApplyOrderLineCondition=} [properties] Properties to set
     * @returns {AftApplyOrderLineCondition} AftApplyOrderLineCondition instance
     */
    AftApplyOrderLineCondition.create = function create(properties) {
        return new AftApplyOrderLineCondition(properties);
    };

    /**
     * Encodes the specified AftApplyOrderLineCondition message. Does not implicitly {@link AftApplyOrderLineCondition.verify|verify} messages.
     * @function encode
     * @memberof AftApplyOrderLineCondition
     * @static
     * @param {IAftApplyOrderLineCondition} message AftApplyOrderLineCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    AftApplyOrderLineCondition.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.uuidList != null && message.uuidList.length)
            for (var i = 0; i < message.uuidList.length; ++i)
                writer.uint32(/* id 17, wireType 2 =*/138).string(message.uuidList[i]);
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.createTimeOUTSET);
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.createTimeFINISH);
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.lastModifyTimeOUTSET);
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.lastModifyTimeFINISH);
        if (message.serAuditList != null && message.serAuditList.length)
            for (var i = 0; i < message.serAuditList.length; ++i)
                writer.uint32(/* id 22, wireType 2 =*/178).string(message.serAuditList[i]);
        if (message.serFileUrl != null && message.serFileUrl.length)
            for (var i = 0; i < message.serFileUrl.length; ++i)
                writer.uint32(/* id 23, wireType 2 =*/186).string(message.serFileUrl[i]);
        if (message.serEditorContent != null && message.serEditorContent.length)
            for (var i = 0; i < message.serEditorContent.length; ++i)
                writer.uint32(/* id 24, wireType 2 =*/194).string(message.serEditorContent[i]);
        return writer;
    };

    /**
     * Encodes the specified AftApplyOrderLineCondition message, length delimited. Does not implicitly {@link AftApplyOrderLineCondition.verify|verify} messages.
     * @function encodeDelimited
     * @memberof AftApplyOrderLineCondition
     * @static
     * @param {IAftApplyOrderLineCondition} message AftApplyOrderLineCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    AftApplyOrderLineCondition.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes an AftApplyOrderLineCondition message from the specified reader or buffer.
     * @function decode
     * @memberof AftApplyOrderLineCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {AftApplyOrderLineCondition} AftApplyOrderLineCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    AftApplyOrderLineCondition.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length,
            message = new $root.AftApplyOrderLineCondition();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
                case 1:
                    message.uuid = reader.string();
                    break;
                case 2:
                    message.upper = reader.string();
                    break;
                case 3:
                    message.validFlag = reader.string();
                    break;
                case 4:
                    message.creator = reader.string();
                    break;
                case 5:
                    message.createTime = reader.string();
                    break;
                case 6:
                    message.creatorIp = reader.string();
                    break;
                case 7:
                    message.lastModifier = reader.string();
                    break;
                case 8:
                    message.lastModifyTime = reader.string();
                    break;
                case 9:
                    message.lastModifierIp = reader.string();
                    break;
                case 10:
                    message.ownerOrganize = reader.string();
                    break;
                case 11:
                    message.ownerRole = reader.string();
                    break;
                case 12:
                    message.serNum = reader.string();
                    break;
                case 13:
                    message.serMemo = reader.string();
                    break;
                case 14:
                    message.serAudit = reader.string();
                    break;
                case 15:
                    message.serUsing = reader.string();
                    break;
                case 16:
                    message.serLabels = reader.string();
                    break;
                case 17:
                    if (!(message.uuidList && message.uuidList.length))
                        message.uuidList = [];
                    message.uuidList.push(reader.string());
                    break;
                case 18:
                    message.createTimeOUTSET = reader.string();
                    break;
                case 19:
                    message.createTimeFINISH = reader.string();
                    break;
                case 20:
                    message.lastModifyTimeOUTSET = reader.string();
                    break;
                case 21:
                    message.lastModifyTimeFINISH = reader.string();
                    break;
                case 22:
                    if (!(message.serAuditList && message.serAuditList.length))
                        message.serAuditList = [];
                    message.serAuditList.push(reader.string());
                    break;
                case 23:
                    if (!(message.serFileUrl && message.serFileUrl.length))
                        message.serFileUrl = [];
                    message.serFileUrl.push(reader.string());
                    break;
                case 24:
                    if (!(message.serEditorContent && message.serEditorContent.length))
                        message.serEditorContent = [];
                    message.serEditorContent.push(reader.string());
                    break;
                default:
                    reader.skipType(tag & 7);
                    break;
            }
        }
        return message;
    };

    /**
     * Decodes an AftApplyOrderLineCondition message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof AftApplyOrderLineCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {AftApplyOrderLineCondition} AftApplyOrderLineCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    AftApplyOrderLineCondition.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies an AftApplyOrderLineCondition message.
     * @function verify
     * @memberof AftApplyOrderLineCondition
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    AftApplyOrderLineCondition.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.uuidList != null && message.hasOwnProperty("uuidList")) {
            if (!Array.isArray(message.uuidList))
                return "uuidList: array expected";
            for (var i = 0; i < message.uuidList.length; ++i)
                if (!$util.isString(message.uuidList[i]))
                    return "uuidList: string[] expected";
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            if (!$util.isString(message.createTimeOUTSET))
                return "createTimeOUTSET: string expected";
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            if (!$util.isString(message.createTimeFINISH))
                return "createTimeFINISH: string expected";
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            if (!$util.isString(message.lastModifyTimeOUTSET))
                return "lastModifyTimeOUTSET: string expected";
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            if (!$util.isString(message.lastModifyTimeFINISH))
                return "lastModifyTimeFINISH: string expected";
        if (message.serAuditList != null && message.hasOwnProperty("serAuditList")) {
            if (!Array.isArray(message.serAuditList))
                return "serAuditList: array expected";
            for (var i = 0; i < message.serAuditList.length; ++i)
                if (!$util.isString(message.serAuditList[i]))
                    return "serAuditList: string[] expected";
        }
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl")) {
            if (!Array.isArray(message.serFileUrl))
                return "serFileUrl: array expected";
            for (var i = 0; i < message.serFileUrl.length; ++i)
                if (!$util.isString(message.serFileUrl[i]))
                    return "serFileUrl: string[] expected";
        }
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent")) {
            if (!Array.isArray(message.serEditorContent))
                return "serEditorContent: array expected";
            for (var i = 0; i < message.serEditorContent.length; ++i)
                if (!$util.isString(message.serEditorContent[i]))
                    return "serEditorContent: string[] expected";
        }
        return null;
    };

    /**
     * Creates an AftApplyOrderLineCondition message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof AftApplyOrderLineCondition
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {AftApplyOrderLineCondition} AftApplyOrderLineCondition
     */
    AftApplyOrderLineCondition.fromObject = function fromObject(object) {
        if (object instanceof $root.AftApplyOrderLineCondition)
            return object;
        var message = new $root.AftApplyOrderLineCondition();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.uuidList) {
            if (!Array.isArray(object.uuidList))
                throw TypeError(".AftApplyOrderLineCondition.uuidList: array expected");
            message.uuidList = [];
            for (var i = 0; i < object.uuidList.length; ++i)
                message.uuidList[i] = String(object.uuidList[i]);
        }
        if (object.createTimeOUTSET != null)
            message.createTimeOUTSET = String(object.createTimeOUTSET);
        if (object.createTimeFINISH != null)
            message.createTimeFINISH = String(object.createTimeFINISH);
        if (object.lastModifyTimeOUTSET != null)
            message.lastModifyTimeOUTSET = String(object.lastModifyTimeOUTSET);
        if (object.lastModifyTimeFINISH != null)
            message.lastModifyTimeFINISH = String(object.lastModifyTimeFINISH);
        if (object.serAuditList) {
            if (!Array.isArray(object.serAuditList))
                throw TypeError(".AftApplyOrderLineCondition.serAuditList: array expected");
            message.serAuditList = [];
            for (var i = 0; i < object.serAuditList.length; ++i)
                message.serAuditList[i] = String(object.serAuditList[i]);
        }
        if (object.serFileUrl) {
            if (!Array.isArray(object.serFileUrl))
                throw TypeError(".AftApplyOrderLineCondition.serFileUrl: array expected");
            message.serFileUrl = [];
            for (var i = 0; i < object.serFileUrl.length; ++i)
                message.serFileUrl[i] = String(object.serFileUrl[i]);
        }
        if (object.serEditorContent) {
            if (!Array.isArray(object.serEditorContent))
                throw TypeError(".AftApplyOrderLineCondition.serEditorContent: array expected");
            message.serEditorContent = [];
            for (var i = 0; i < object.serEditorContent.length; ++i)
                message.serEditorContent[i] = String(object.serEditorContent[i]);
        }
        return message;
    };

    /**
     * Creates a plain object from an AftApplyOrderLineCondition message. Also converts values to other types if specified.
     * @function toObject
     * @memberof AftApplyOrderLineCondition
     * @static
     * @param {AftApplyOrderLineCondition} message AftApplyOrderLineCondition
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    AftApplyOrderLineCondition.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults) {
            object.uuidList = [];
            object.serAuditList = [];
            object.serFileUrl = [];
            object.serEditorContent = [];
        }
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.createTimeOUTSET = "";
            object.createTimeFINISH = "";
            object.lastModifyTimeOUTSET = "";
            object.lastModifyTimeFINISH = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.uuidList && message.uuidList.length) {
            object.uuidList = [];
            for (var j = 0; j < message.uuidList.length; ++j)
                object.uuidList[j] = message.uuidList[j];
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            object.createTimeOUTSET = message.createTimeOUTSET;
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            object.createTimeFINISH = message.createTimeFINISH;
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            object.lastModifyTimeOUTSET = message.lastModifyTimeOUTSET;
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            object.lastModifyTimeFINISH = message.lastModifyTimeFINISH;
        if (message.serAuditList && message.serAuditList.length) {
            object.serAuditList = [];
            for (var j = 0; j < message.serAuditList.length; ++j)
                object.serAuditList[j] = message.serAuditList[j];
        }
        if (message.serFileUrl && message.serFileUrl.length) {
            object.serFileUrl = [];
            for (var j = 0; j < message.serFileUrl.length; ++j)
                object.serFileUrl[j] = message.serFileUrl[j];
        }
        if (message.serEditorContent && message.serEditorContent.length) {
            object.serEditorContent = [];
            for (var j = 0; j < message.serEditorContent.length; ++j)
                object.serEditorContent[j] = message.serEditorContent[j];
        }
        return object;
    };

    /**
     * Converts this AftApplyOrderLineCondition to JSON.
     * @function toJSON
     * @memberof AftApplyOrderLineCondition
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    AftApplyOrderLineCondition.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return AftApplyOrderLineCondition;
})();

module.exports = $root;
